import request from "@/utils/request";
import { AxiosPromise } from "axios";


// 文章列表
export let _artiCleList = (params: listData) => {
    return request({
        url: "/article/list",
        method: "GET",
        params
    })
}

// 文章详情 -- 根据文章id获取文章内容
export let _artiCleDetail = (params: userDelData): any => {
    return request({
        url: "/article/detail",
        method: "GET",
        params
    })
}


// 修改文章
export let _artiCleEdit = (data: userDelData): any => {
    return request({
        url: "/article/edit",
        method: "POST",
        data
    })
}


